package com.project.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.project.common.Page;
import com.project.dao.BaseDao;
import com.project.entity.sys.BaseEntity;


public class BaseService<T extends BaseEntity> {

	@Autowired
	private BaseDao<T> dao;

	public Page<T> queryPage(T t) {
		return dao.queryPage(t);
	}

	public List<T> query(T t) {
		return dao.query(t);
	}

	public T queryEntity(T t) {
		return dao.queryEntity(t);
	}

	public T getById(Long id) {
		return dao.getById(id);
	}

	
	public BaseDao<T> getDao() {
	    return null;
	  }
}
